<template>
  <div class="main">
    <div class="saleing-detail">
      <div class="title disflex">
        <el-breadcrumb separator-class="el-icon-arrow-right" style="line-height:70px;">
          <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
          <el-breadcrumb-item>活动管理</el-breadcrumb-item>
        </el-breadcrumb>
      </div>
      <el-row :gutter="20">
        <el-col :span="8">
          <div class="grid-content bg-purple">
            <div class="title disflex">
              <h2>会员中心</h2>
              <!-- <a>查看更多</a> -->
            </div>
            <el-menu :router="true" default-active="2" class="el-menu-vertical-demo">
              <el-menu-item
                v-for="(item,index) in leftMenuArr"
                :key="index"
                :index="item.path"
                @click="getMenuName(item.name)"
              >
                <i class="el-icon-menu"></i>
                <span slot="title">{{item.name}}</span>
              </el-menu-item>
            </el-menu>
          </div>
        </el-col>
        <el-col :span="16">
          <div class="grid-content bg-purple">
            <div class="title disflex">
              <h2>{{titleName}}</h2>
              <!-- <a>查看更多</a> -->
            </div>
            <router-view/>
          </div>
        </el-col>
      </el-row>
    </div>
    <!-- saleing --end -->
  </div>
</template>
<script>
// import configs from "../config.js";
import buyList from "@/components/buyList";
export default {
  components: { buyList },
  data() {
    return {
      dialogVisible: false,
      titleName: "我的资料",
      leftMenuArr: [
        { name: "我的资料", path: "/user/myinfo" },
        { name: "消息", path: "/user/myNotice" },
        { name: "红包", path: "/user/myRed" },
        { name: "支出记录", path: "/user/myOutRecord" },
        { name: "出售中的商品", path: "/user/mySaling" },
        { name: "求购商品", path: "/user/myBuying" },

        { name: "退出", path: "" }
      ]
    };
  },
  computed: {},
  mounted() {},
  created() {},

  methods: {
    getMenuName(name) {
      this.titleName = name;
    }
  },

  mounted() {}
};
</script>
<style scoped lang="scss">
.d-show {
  position: relative;
  padding-left: 600px;
  min-height: 500px;
  padding-top: 50px;
  h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  p {
    line-height: 30px;
    color: #666;
    &.red {
      font-size: 30px;
      padding: 10px 0;
    }
  }
  img {
    width: 500px;
    height: 500px;
    position: absolute;
    left: 0;
    top: 50px;
  }
}
.table {
  table {
    width: 70%;
    line-height: 30px;
    font-size: 14px;
    color: #666;
    td {
      border: 1px solid #f5f5f5;
      padding: 0 10px;
      &.tit {
        color: #444;
        font-weight: bold;
      }
    }
  }
}
.buycon {
  padding: 20px;
  p {
    line-height: 26px;
    text-indent: 2em;
  }
}
</style>
